<?php

namespace Havoo\Core;

class Controller
{

    protected $_app;
    protected $_controller;
    protected $_action;
    protected $_view;

    public function __construct($controller, $action)
    {
        $this->_controller = $controller;
        $this->_action = $action;
        $this->_view = new View($controller, $action);
        $this->init();
    }

    public function init()
    {
    }

    public function assign($name, $value)
    {
        $this->_view->assign($name, $value);
    }

}

